package ai.people.netmon.framework.exception.enums;

/**
 * 图片异常枚举
 *
 * @author zhenglin
 * @date 2022/4/12
 */
public enum FileExceptionEnum implements ExceptionEnum{

    FILE_SIZE_LIMIT(false, 700000, "文件太大!"),
    FILE_DIRECTORY_CREATION_FAILED(false, 700001, "文件目录创建失败!"),
    FILE_SUFFIX_NOT_SUPPORT(false, 700002, "文件格式不支持!"),
    FILE_DOES_NOT_EXIST(false, 700003, "文件不存在")
    ;

    /**
     * 状态
     */
    final boolean status;
    /**
     * 代码
     */
    final int code;
    /**
     * 消息
     */
    final String message;

    FileExceptionEnum(boolean status, int code, String message) {
        this.status = status;
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    @Override
    public boolean getStatus() {
        return this.status;
    }
}
